package com.open.capacity.prints.excel;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.handler.inter.IExcelDataModel;
import cn.afterturn.easypoi.handler.inter.IExcelModel;
import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import java.math.BigDecimal;
import java.util.Date;


@Data
public class CnpzExcelModel implements IExcelDataModel, IExcelModel {
    //行号
    private Integer rowNum;
    //错误消息
    private String errorMsg;

    private String id;

    @Excel(name = "出纳会计科目*", isImportField = "true_st")
    private String kjkmName;

    @Excel(name = "凭证日期*", isImportField = "true_st")
    @JSONField(format = "yyyy/MM/dd")
    private Date pzrq;

    @Excel(name = "凭证摘要*", isImportField = "true_st")
    @NotBlank(message = "[凭证摘要]不能为空")
    private String zy;

    @Excel(name = "期初凭证", replace = {"是_1", "否_0"})
    private Integer isQc;

    @Excel(name = "会计凭证号", isImportField = "true_st")
    private String kjpzh;

    @Excel(name = "借方金额", isImportField = "true_st")
    private BigDecimal jje;

    @Excel(name = "贷方金额", isImportField = "true_st")
    private BigDecimal dje;

    @Excel(name = "案件", isImportField = "true_st")
    private String aj;

    @Excel(name = "票据号", isImportField = "true_st")
    private String pjh;

    @Excel(name = "往来对象", isImportField = "true_st")
    private String wldx;

    @Excel(name = "项目", isImportField = "true_st")
    private String xm;

    @Excel(name = "部门", isImportField = "true_st")
    private String bm;


}
